$.each($(".layui-hide"),function(index,oneObj){
	var functionId=$(oneObj).attr("function-id")||"";
	var functionName=$(oneObj).attr("function-name")||"";
	if(functionId.length>0){
		AjaxPostFn( '/system/roleFunctionControl/checkRoleFunction.do', '{"functionId":"'+functionId+'"}', function(
						jsonData) {
			console.log(jsonData);
			if (jsonData.resultCode == "200") {
				$(oneObj).removeClass("layui-hide");
				eval(functionName);
				
				 
			}
		});
	}
});


function dataReadyCheckPermission(){
	$.each($(".layui-hide"),function(index,oneObj){
		var functionId=$(oneObj).attr("function-id")||"";
		var functionName=$(oneObj).attr("function-name")||"";
		if(functionId.length>0){
			AjaxPostFn( 'system/roleFunctionControl/checkRoleFunction.do', '{"functionId":"'+functionId+'"}', function(jsonData) {
				console.log(jsonData);
				if (jsonData.resultCode == "200") {
					$(oneObj).removeClass("layui-hide");
					eval(functionName);
					
					 
				}
			});
		}
	});	
}